package com.flx.at.spring.code.test.testapplicationlistener.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/7 16:05
 * @Description: 监听器采用观察者模式
 */
public class AppListener implements ApplicationListener {

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("收到一个事件："+event);
    }

}
